//
//  HankView.m
//  LockTest
//
//  Created by ZhangBo on 2018/12/3.
//  Copyright © 2018 ZhangBo. All rights reserved.
//

#import "HankView.h"

@implementation HankView
- (RACSubject *)btnSingnal {

    if (!_btnSingnal) {
        _btnSingnal = [RACSubject subject];
    }
    return _btnSingnal;
}

- (IBAction)btnClick:(id)sender {
    NSArray *array = @[[UIColor yellowColor], [UIColor redColor], [UIColor blueColor]];
    //通知外面!!
    [self.btnSingnal sendNext:array[arc4random() % 3]];
}


@end
